package org.example.casLoginDemo.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.casLoginDemo.mapper.LoginMapper;
import org.example.casLoginDemo.po.User;
import org.example.casLoginDemo.service.LoginService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @ClassName: LoginServiceImpl
 * @Description:
 * @Author: YourName
 * @Date: 2023/7/16
 */
@Service("loginServiceImpl")
public class LoginServiceImpl extends ServiceImpl<LoginMapper, User> implements LoginService {
    @Resource
    private LoginMapper loginMapper;
    @Override
    public List<User> getUser(Map<String, Object> map) {

        return loginMapper.selectByMap(map);
    }

    @Override
    public int addUser(User user) {
        return loginMapper.insert(user);
    }

    public void loginOut(){
        System.out.printf("goodbye world");
    }
}
